<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK Objective-C API Reference for iOS/macOS: JCSDKOC/JCSDKOC/JCMessageChannel/JCMessageChannel.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK Objective-C API Reference for iOS/macOS
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_264cb3eb38195563df8d4ec61e97ef66.html">JCSDKOC</a></li><li class="navelem"><a class="el" href="dir_8909aba9135893f62ff3b0388ad9e7d6.html">JCSDKOC</a></li><li class="navelem"><a class="el" href="dir_60dc79a6f32ab9229e02613a22a2eb20.html">JCMessageChannel</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">JCMessageChannel.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_j_c_message_channel_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">//  JCMessageChannel.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">//  JCSDKOC</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//  Created by maikireton on 2017/8/11.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//  Copyright © 2017年 juphoon. All rights reserved.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#import &lt;Foundation/Foundation.h&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#import &quot;<a class="code" href="_j_c_message_channel_item_8h.html">JCMessageChannelItem.h</a>&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#import &quot;<a class="code" href="_j_c_message_channel_callback_8h.html">JCMessageChannelCallback.h</a>&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="interface_j_c_message_channel.html">   21</a></span>&#160;<span class="keyword">@interface </span><a class="code" href="interface_j_c_message_channel.html">JCMessageChannel</a> : NSObject</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="interface_j_c_message_channel.html#a826f73531b0ff987b856022403d07d2d">   28</a></span>&#160;<span class="keyword">@property</span> (nonatomic, copy) NSString * __nonnull <a class="code" href="interface_j_c_message_channel.html#a7bbd9ce45010a827acd589063b5469dd">thumbDir</a>;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;+(<a class="code" href="interface_j_c_message_channel.html">JCMessageChannel</a>* __nullable)create:(<a class="code" href="interface_j_c_client.html">JCClient</a>* __nonnull)client callback:(id&lt;JCMessageChannelCallback&gt; __nonnull)callback;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;+(void)<a class="code" href="interface_j_c_message_channel.html#a78e87696e1dffb30a286f33fb6011bd7">destroy</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;-(<a class="code" href="interface_j_c_message_channel_item.html">JCMessageChannelItem</a>* __nullable)sendMessage:(<a class="code" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gaf3c09a60029d0e8dae56658b90f7d0f4">JCMessageChannelType</a>)type keyId:(NSString* __nonnull)keyId messageType:(NSString* __nonnull)messageType text:(NSString* __nonnull)text extraParams:(NSDictionary* __nullable)extraParams cookie:(<span class="keywordtype">id</span> __nullable)cookie atAll:(<span class="keywordtype">bool</span>)atAll atServerUidList:(NSArray&lt;NSString*&gt;* __nullable)atServerUidList;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;-(<a class="code" href="interface_j_c_message_channel_item.html">JCMessageChannelItem</a>* __nullable)sendFile:(<a class="code" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gaf3c09a60029d0e8dae56658b90f7d0f4">JCMessageChannelType</a>)type keyId:(NSString* __nonnull)keyId messageType:(NSString* __nonnull)messageType fileUri:(NSString* __nonnull)fileUri thumbUri:(NSString* __nullable)thumbUri size:(int)size duration:(<span class="keywordtype">int</span>)duration extraParams:(NSDictionary* __nullable)extraParams cookie:(<span class="keywordtype">id</span> __nullable)cookie atAll:(bool)atAll atServerUidList:(NSArray&lt;NSString*&gt;* __nullable)atServerUidList;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;-(int)refreshConversation:(NSString* __nullable)serverUid lastQueryTime:(long)lastQueryTime;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;-(int)fetchMessages:(nonnull NSString*)serverUid startMessageId:(long)startMessageId count:(<span class="keywordtype">int</span>)count pack:(bool)pack;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;-(int)markReadMessage:(nonnull NSString*)serverUid messageId:(long)messageId isGroup:(<span class="keywordtype">bool</span>)isGroup;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160; </div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;-(int)markRecvMessage:(nonnull NSString*)serverUid messageId:(long)messageId;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160; </div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;-(int)withdrawalMessage:(nonnull NSString*)serverUid messageId:(long)messageId content:(NSString* __nonnull)content;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160; </div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="keyword">@end</span></div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160; </div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="ainterface_j_c_message_channel_html"><div class="ttname"><a href="interface_j_c_message_channel.html">JCMessageChannel</a></div><div class="ttdef"><b>Definition:</b> JCMessageChannel.h:22</div></div>
<div class="ttc" id="ainterface_j_c_message_channel_html_a78e87696e1dffb30a286f33fb6011bd7"><div class="ttname"><a href="interface_j_c_message_channel.html#a78e87696e1dffb30a286f33fb6011bd7">+[JCMessageChannel destroy]</a></div><div class="ttdeci">void destroy()</div></div>
<div class="ttc" id="agroup___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97_html_gaf3c09a60029d0e8dae56658b90f7d0f4"><div class="ttname"><a href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gaf3c09a60029d0e8dae56658b90f7d0f4">JCMessageChannelType</a></div><div class="ttdeci">JCMessageChannelType</div><div class="ttdef"><b>Definition:</b> JCMessageChannelConstants.h:19</div></div>
<div class="ttc" id="ainterface_j_c_message_channel_item_html"><div class="ttname"><a href="interface_j_c_message_channel_item.html">JCMessageChannelItem</a></div><div class="ttdef"><b>Definition:</b> JCMessageChannelItem.h:21</div></div>
<div class="ttc" id="ainterface_j_c_message_channel_html_a7bbd9ce45010a827acd589063b5469dd"><div class="ttname"><a href="interface_j_c_message_channel.html#a7bbd9ce45010a827acd589063b5469dd">JCMessageChannel::thumbDir</a></div><div class="ttdeci">NSString *__nonnull thumbDir</div><div class="ttdef"><b>Definition:</b> JCMessageChannel.h:28</div></div>
<div class="ttc" id="a_j_c_message_channel_callback_8h_html"><div class="ttname"><a href="_j_c_message_channel_callback_8h.html">JCMessageChannelCallback.h</a></div></div>
<div class="ttc" id="a_j_c_message_channel_item_8h_html"><div class="ttname"><a href="_j_c_message_channel_item_8h.html">JCMessageChannelItem.h</a></div></div>
<div class="ttc" id="ainterface_j_c_client_html"><div class="ttname"><a href="interface_j_c_client.html">JCClient</a></div><div class="ttdef"><b>Definition:</b> JCClient.h:94</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
